{{extend "layout.html"}}
<div id="primary">
<div id="current-content">
<div id="primarycontent" class="hfeed">
<hr>
	<div id="post-{{=entry.index}}" class="hentry p1 publish author-admin category-code y2009 m06 d22 h07 alt">
		<div class="entry-head">
			<h3 class="entry-title">
				<a href="/view/{{=entry.index}}" title="Permanent Link to {{=entry.title}}">{{=entry.title}}</a>
			</h3>

			<small class="entry-meta">
				<span class="meta-start">Published</span>
				<div class="entry-author">
					<span class="meta-prep">by</span> {{=entry.author.nickname()}}
				</div>
				<div class="entry-date">{{=entry.datestr()}}</div>
				{{if entry.entype == 'post':}}
				<span class="entry-tags">Tags:
					{{for tag in entry.tags:}}
						<a href="/tag/{{=tag}}">{{=tag}}</a>
					{{pass}}
				</span>
				{{pass}}
			</small> <!-- .entry-meta -->
		</div> <!-- .entry-head -->

			<div class="entry-content">
				{{Xml(entry.content)}}
			</div> <!-- .entry-content -->

	</div> <!-- #post-ID -->

	{{cmtcount = entry.comments.count()}}
	<div class="comments">
		<h4>
			{{if cmtcount == 0:}}
			<span id="comments">No</span> Response
			{{elif cmtcount == 1:}}
			<span id="comments">1</span> Response
			{{else:}}
			<span id="comments">{{=cmtcount}}</span> Responses
			{{pass}}
			to {{=entry.title}}
		</h4>
		<hr>

		{{if cmtcount > 0:}}
		<ol id="commentlist">
		{{for n, comment in enumerate(entry.comments):}}
			<li id="comment-{{=comment.index}}" class="comment c1 c-y2009 c-m06 c-d23 c-h08 alt">
				<a href="/view/{{=entry.index}}#{{=comment.index}}" class="counter" title="Permanent Link to this Comment">{{=n+1}}</a>
				<span class="commentauthor">
				<a href="{{=comment.site}}" rel="external nofollow">{{=comment.author}}</a>
				</span>

				<small class="comment-meta">
				<a href="/view/{{=entry.index}}#comment-{{=comment.index}}" title="Permanent Link to this Comment">{{=comment.datestr()}}</a>
				</small>

				<div class="comment-content">
				{{=comment.content}}
				</div>
			</li>
		{{pass}}
		</ol>
		{{pass}}
	</div> <!-- END .comments 1 -->

	<div class="comments">
		<h4 id="respond" class="reply">Leave a Reply</h4>
		<form action="/view/{{=entry.index}}" method="post" id="commentform">
				{{Xml(cmtform.render_css())}}
				<div class="clear"></div>
		</form>
		<hr>
	</div> <!-- END .comments #2 -->


</div> <!-- #primarycontent .hfeed -->
</div> <!-- #current-content -->
</div> <!-- #primary -->

